package com.example.demo.entity.request;


import javax.validation.constraints.NotNull;

public class User {
    @NotNull(message = "请输入账号")
    private String account;

    @NotNull(message = "请输入密码")
    private String password;



    public User(@NotNull(message = "请输入账号") String account, @NotNull(message = "请输入密码") String password) {
        this.account = account;
        this.password = password;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
